// TS 类型

// 布尔值
let b1: boolean = true
// 数字
let n1: number = 1
// 字符串
let str: string = "123123"
// 数组
let arr: number[] = [1, 2, 3, 4, 5]
let arr1: Array<number> = [1, 2, 3, 4, 5]

// 元组
let state: [number, string] = [1, '1231']
// const [state, setState] = useState(1)
// 枚举
enum Color { Red, Yellow, Green }
console.log(Color.Red);
console.log(Color.Yellow);
console.log(Color.Green);

console.log(Color[0]);
console.log(Color[1]);
console.log(Color[2]);

// any
let a: any = "1"
a = 1
a = true
a = []

// Void
function add() {

}

const b = add()


let num: number = null
let flag1: boolean = undefined